package nciae.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import nciae.db.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 登录
     * @param user
     * @return
     */
    @Select("select * from users where user_name=#{userName} and user_pwd=#{userPwd}")
    User getByUsernameAndPassword(User user);
}
